package com.atguigu.gmall.activity.redis;


import org.springframework.stereotype.Component;

@Component
public class MessageReceive {

    public void receiveMessage(String message){
        System.out.println("redis:message:" + message);

        String[] split = message.replaceAll("\"","").split(":");
        CacheHelper.put(split[0],split[1]);
    }
}
